home *** CD-ROM | disk | FTP | other *** search
/ Into His Marvelous Light / Into His Marvelous LIGHT.iso / lesson1.dxr / 00277_Script_Go to URL < prev    next >
Text File  |  2001-09-05  |  2KB  |  66 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return "¼
  5. GO TO URL"&RETURN&RETURN&"¼
  6. Drop this behavior onto a Sprite, the Stage or into the Script Channel of ¼
  7. the Score to load the designated HTML Page."&¼
  8. RETURN&RETURN&"¼
  9. If you drop it onto a graphic member, the 'gotoNetPage' command ¼
  10. is sent when the user clicks on the sprite (on mouseUp)."&RETURN&RETURN&"¼
  11. If you drop it onto the Stage or the Script Channel of the Score, ¼
  12. it will be sent when the playback head leaves the frame (on exitFrame)."&¼
  13. RETURN&RETURN&"¼
  14. When called from a Shockwave movie, this behavior replaces the current page ¼
  15. displayed in the web browser.  When called from a projector or in authoring ¼
  16. mode, it opens a browser to display the requested page."&RETURN&RETURN&"¼
  17. PARAMETERS:"&RETURN&"¼
  18. * Destination URL - Enter the complete URL of the destination page. Include http://"
  19. end getBehaviorDescription
  20.  
  21. on getBehaviorTooltip me
  22.   return "¼
  23. Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
  24. When called from a Shockwave movie, this behavior"&RETURN&"¼
  25. replaces the current page displayed in the web"&RETURN&"¼
  26. browser.  When called from a projector or in"&RETURN&"¼
  27. authoring mode, it opens a browser to display"&RETURN&"¼
  28. the requested page."&RETURN&RETURN&"¼
  29. Acts on mouseUp or on exitFrame, depending on"&RETURN&"¼
  30. whether you drag it to a sprite or to the Stage."
  31. end getBehaviorTooltip
  32.  
  33.  
  34.  
  35. -- HISTORY --
  36.  
  37. -- 12 November 1998, written for the D7 Behaviors Palette by James Newton
  38.  
  39.  
  40.  
  41. property myURL
  42.  
  43. on mouseUp me
  44.   -- The user clicked on a sprite
  45.   gotoNetPage myURL
  46. end mouseUp
  47.  
  48. on exitFrame me
  49.   if the currentspriteNum = 0 then
  50.     -- The behavior is attached to a frame
  51.     gotoNetPage myURL
  52.   end if
  53. end exitFrame
  54.  
  55. on getPropertyDescriptionList  
  56.   return ¼
  57. [ ¼
  58.  #myURL: ¼
  59.  [ ¼
  60.   #comment: "Destination URL:", ¼
  61.   #format:  #string, ¼
  62.   #default: "http://www.macromedia.com                  " ¼
  63.  ] ¼
  64. ]
  65. end getPropertyDescriptionList